<?php
include ('template/header.php');
session_name($usuarios_sesion);
include("db_config.php");
$id_empresa = $_GET['id_empresa'];
//$id=$result['id'];

$result = mysql_query("select * from empresa where id_empresa='$id_empresa'", $link);
$row = mysql_fetch_assoc($result);
?>
<div id="content">
    <div id="breadcrumb">Inicio &raquo; Ver Empresas &raquo; Empresa</div>
    <div id="titulo">Modificar</div>
    <form name="forma1" action="modi_empresa2.php?id_empresa=<?php echo $id_empresa ?>" method="post" enctype="multipart/form-data">
        <table width="100%" border="0">
            <tr>
                <td colspan="6"><div align="center"><strong><font color="#FF3300">Datos de la empresa </font></strong></div></td>
            </tr>
            <tr>
                <td><strong>Nombre</strong></td>
                <td colspan="2"><input type="text"  maxlength="60" name="nombre" size="50" style="font-family: Calibri; font-size: 12pt; font-weight: bold;" value="<?php echo $row['nombre']; ?>"   /></td>
                <td><strong>Ramo</strong></td>
                <td colspan="2"><select name="ramo">
                        <option value="<?php echo $row['ramo']; ?>"> <?php echo $row['ramo']; ?> </option>
                        <option value="Industrial(X)">Industrial</option>
                        <option value="Privado(X)">Privado</option>
                        <option value="Publico(X)">Publico</option>
                        <option value="Servicios(X)">Servicios</option>
                        <option value="Gobierno Federal"> Gobierno Federal </option>
                        <option value="Gobierno Estatal"> Gobierno Estatal </option>
                        <option value="Otro(X)">Otro</option>
                    </select></td>
            </tr>
            <tr>
                <td><strong>Direccion</strong></td>
                <td colspan="2"><input type="text"  maxlength="40" size="40" style="font-family: Calibri; font-size: 12pt; font-weight: bold;"  name="direccion" value="<?php echo $row['direccion']; ?>"   /></td>
                <td><strong>RFC</strong></td>
                <td colspan="2"><input align="left" type="text"  maxlength="13" name="rfc" size="20" style="font-family: Calibri; font-size: 12pt; font-weight: bold;"  value="<?php echo $row['rfc']; ?>"   /></td>

            </tr>
            <tr>
                <td><strong>Colonia</strong></td>
                <td colspan="2"><input type="text"  maxlength="30" size="30" style="font-family: Calibri; font-size: 12pt; font-weight: bold;"  name="colonia" value="<?php echo $row['colonia']; ?>"   /></td>
                <td><strong>CP</strong></td>
                <td colspan="2"><input type="text"  maxlength="6" size="10" style="font-family: Calibri; font-size: 12pt; font-weight: bold;"  name="cp" value="<?php echo $row['cp']; ?>"   /></td>
            </tr>
            <tr>
                <td><strong>Ciudad</strong></td>
                <td colspan="2"><input type="text"  maxlength="30" size="30" style="font-family: Calibri; font-size: 12pt; font-weight: bold;"  name="ciudad" value="<?php echo $row['ciudad']; ?>"   /></td>
                <td><strong>Telefono</strong></td>
                <td colspan="2"><input type="text"  maxlength="10" size="10" style="font-family: Calibri; font-size: 12pt; font-weight: bold;"  name="tel2" value="<?php echo $row['tel2']; ?>"   /></td>
            </tr>
            <tr>
                <td><strong>Encargado</strong></td>
                <td colspan="2"><input type="text"  maxlength="50" size="40" style="font-family: Calibri; font-size: 12pt; font-weight: bold;"  name="encargado" value="<?php echo $row['encargado']; ?>"   /></td>
                <td><strong>Telefono(Fax)</strong></td>
                <td colspan="2"><input type="text"  maxlength="10" size="10" style="font-family: Calibri; font-size: 12pt; font-weight: bold;"  name="tel1" value="<?php echo $row['tel1']; ?>"   /></td>

            </tr>
            <tr>

                <td><strong>Puesto</strong></td>
                <td colspan="2"><input type="text"  maxlength="30" size="40" style="font-family: Calibri; font-size: 12pt; font-weight: bold;"  name="puestot" value="<?php echo $row['puestot']; ?>"   /></td>
            </tr>
            <tr>
                <td align="center" style="border:1px solid #ededed"> <div align="center"><font color="#333333"><strong>
                            <input type="submit" id="aceptar" name="aceptar" value="Aceptar"   /> </strong></font></div></td>
            </tr>
        </table>
    </form>
</div>